#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void unit( int arr1[],int x)
{
	int i = 0;
	for (i = 0; i < x; i++)
	{
		arr1[i] = 0;
	}
}
void Print(int arr1[], int x)
{
	int i = 0;
	for (i = 0; i < x; i++)
	{
		printf("%d ", arr1[i]);
	}
}
void reverse(int arr1[], int x)
{
	int i = 0;
	for (i = 0; i < (x )/2; i++)
	{
		int temp = arr1[i];
		arr1[i] = arr1[x - 1 - i];
		arr1[x - 1 - i] = temp;
	}
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8,9 };
	int sz = sizeof(arr1) / sizeof(arr1[0]);
	//unit(arr1,sz);
	Print(arr1,sz);
	printf("\n");
	reverse(arr1, sz);
	Print(arr1, sz);

	return 0;
}